#!/bin/bash
# Zaitan Module - MIRO Install
# Zaitan Team <http://code.google.com/p/zaitan/>

RMOD_ENGINE='1.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='Multimidia'
RMOD_NAME='MIRO'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='0.9.9.1'
RMOD_DESCRIPTION='Installs MIRO'
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'


# install MIRO



echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall

cd /usr/share/zaitan

apt-get update
wget -c http://security.ubuntu.com/ubuntu/pool/main/b/boost/libboost-python1.33.1_1.33.1-2_i386.deb
dpkg -i libboost-python1.33.1_1.33.1-2_i386.deb
apt-get -f install

# update
echo '
# Install MIRO
deb http://ftp.osuosl.org/pub/pculture.org/miro/linux/repositories/ubuntu feisty/ #MIRO' | tee -a /etc/apt/sources.list


apt-get update
apt-get --force-yes install miro

sed -i -e '/MIRO/d' /etc/apt/sources.list

apt-get update

echo $RMOD_NAME Finibashed...

##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##

exit 0

